<template>
	<!-- 处方 -->
	<view class="prescriptionItems">
		<!-- 用户信息 -->
		<view class="prescriptionItem-user">
			<view class="prescriptionItem-userInfo">
				<image src="" mode="widthFix" style="width: 60rpx; height: 60rpx; border-radius: 50%"></image>
				<text class="name">睡个好觉</text>
				<text class="sex">男</text>
				<text class="age">23岁</text>
			</view>
			<view class="prescriptionItem-type">
				未使用
			</view>
		</view>

		<!-- 诊断信息 -->
		<view class="prescriptionItem-diagnosis">
			<view class="diagnosisItem">
				<text class="diagnosisItem-label">诊断</text>
				<text class="diagnosisItem-text">测试测试</text>
			</view>
			<view class="diagnosisItem">
				<text class="diagnosisItem-label">日期</text>
				<text class="diagnosisItem-text">2024-11-01 15:21</text>
			</view>
			
			<view class="examine">
				<view class="examineItem">
					<text>西药审核员：</text>
					<text>测试审核员</text>
				</view>
				<view class="examineItem">
					<text>西药审核时间：</text>
					<text>2024-11-01 15:21</text>
				</view>
				<view class="examineItem">
					<text>中药审核员：</text>
					<text>测试审核员</text>
				</view>
				<view class="examineItem">
					<text>中药审核时间：</text>
					<text>2024-11-01 15:21</text>
				</view>
				<view class="examineItem">
					<text>医疗机构：</text>
					<text>测试医疗机构</text>
				</view>
			</view>
		</view>

		<!-- 详情按钮 -->
		<view class="prescriptionItem-btn">
			<view class="btn">查看详情</view>
		</view>
	</view>
</template>

<script>
export default {
	name: 'hwxcPrescriptionItem',
	data() {
		return {};
	}
};
</script>

<style scoped lang="scss">
.prescriptionItems {
	.prescriptionItem-user {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-bottom: 20rpx;
		border-bottom: 1px #f3f3f3 solid;
		.prescriptionItem-userInfo {
			display: flex;
			align-items: center;
			font-size: 26rpx;
			.name {
				font-weight: bold;
				margin-left: 10rpx;
				font-size: 28rpx;
			}

			.sex {
				color: #999;
				padding: 0px 16rpx;
			}

			.age {
				color: #999;
			}
		}
		
		.prescriptionItem-type{
			font-size: 26rpx;
			color: #bb412e;
		}
	}

	.prescriptionItem-diagnosis {
		box-sizing: border-box;
		padding: 20rpx 0px;
		border-bottom: 1px #f3f3f3 solid;
		.diagnosisItem {
			font-size: 26rpx;
			height: 60rpx;
			line-height: 60rpx;
			.diagnosisItem-label {
				width: 120rpx;
				color: #999;
				display: inline-block;
			}
		}
		
		.examine{
			background-color: #f3f3f3;
			box-sizing: border-box;
			padding: 10rpx 20rpx;
			border-radius: 24rpx;
			margin-top: 20rpx;
			.examineItem{
				height: 60rpx;
				line-height: 60rpx;
				font-size: 26rpx;
			}
		}
	}

	.prescriptionItem-btn {
		padding-top: 20rpx;
		display: flex;
		justify-content: flex-end;
		.btn{
			background-color: #f3f3f3;
			font-size: 24rpx;
			width: 150rpx;
			text-align: center;
			height: 60rpx;
			line-height: 60rpx;
			border-radius: 60rpx;
		}
	}
}
</style>
